package com.ls.service.impl;

import com.ls.entity.UserEntity;
import com.ls.mapper.test1.User1Mapper;
import com.ls.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private User1Mapper user1Mapper;

    @Override
    @Transactional
    public List<UserEntity> getAllUsers(){
        user1Mapper.findAll(UserEntity.class);
       return user1Mapper.findAll(UserEntity.class);
    }

}
